package com.around.test.m3u8.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: moodincode
 * @create 2021/2/24
 */
public class M3U8 {
    private String basepath;
    private String relativePath;
    private String fpath;
    //是否加密
    private Boolean isEncrypted=false;
    //加密方法
    private String method;
    //偏移量
    private String iv;
    //加密密钥
    private byte[] key;
    private List<M3U8Ts> tsList = new ArrayList<M3U8Ts>();
    private List<M3U8> m3u8List = new ArrayList<M3U8>();


    public String getFpath() {
        return fpath;
    }

    public void setFpath(String fpath) {
        this.fpath = fpath;
    }

    public List<M3U8> getM3u8List() {
        return m3u8List;
    }

    public void addM3u8(M3U8 m3u8) {
        this.m3u8List.add(m3u8) ;
    }

    public String getBasepath() {
        return basepath;
    }

    public void setBasepath(String basepath) {
        this.basepath = basepath;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }

    public List<M3U8Ts> getTsList() {
        return tsList;
    }

    public void setTsList(List<M3U8Ts> tsList) {
        this.tsList = tsList;
    }

    public void addTs(M3U8Ts ts) {
        this.tsList.add(ts);
    }
    @Override
    public String toString() {
        return super.toString();
    }

    public Boolean getEncrypted() {
        return isEncrypted;
    }

    public void setEncrypted(Boolean encrypted) {
        isEncrypted = encrypted;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public byte[] getKey() {
        return key;
    }

    public void setKey(byte[] key) {
        this.key = key;
    }
}
